<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>v-model</title>
	</head>
	<body>
		<div id="app">
			<input type="radio" :checked="flag"/>
			<input type="text" v-model="name" placeholder="请输入,姓名" />
			<input type="number" v-model="age" placeholder="请输入,年龄" />
			<textarea placeholder="请输入备注" v-model="remark"></textarea>
			<button @click="submit">提交数据</button>
		</div>

		<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
		<script>
			var vue = new Vue({
				el: '#app',
				data: {
					flag : false,
					name: "",
					age: "18",
					remark: ""
				},
				methods: {
					submit: function() {
						console.log("姓名 : " + this.name + " ; 年龄 : " + this.age + " 备注 : " + this.remark)
					}
				}
			})
		</script>
	</body>

</html>
